<template>
  <div>
    <h1>我是分类</h1>
    <router-link to="/cate/catechildone">分类1</router-link>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  mounted() {
    console.log("挂载后");
  },
  // keep-alive缓存组件激活时触发
  activated() {
    console.log("activated");
  },
  // keep-alive缓存组件失活时触发
  deactivated() {
    console.log("deactivate");
  },
};
</script>

<style lang="scss" scoped>
</style>